package com.example.xViewChat.NettyClient;

import android.net.NetworkInfo;
import com.example.xViewChat.Bean.IntentBean;

/**
 * Created by hasee on 2016-03-30.
 */
public interface EventListener {
    /**
     * 消息收到
     */
    public void onMessageReceived(IntentBean intentBean);

    /**
     * 收到回复
     *
     * @param request
     */
    public void onReplyReceived(IntentBean intentBean);

    /**
     * 网络状态改变
     */
    public void onNetworkChanged(NetworkInfo networkinfo);

    /**
     * 获取连接状态
     */
    public void onConnectionStatus(boolean isConnected);

    /**
     * 链接成功
     */
    public void onConnectionSucceed();


    /**
     * 断开链接
     */
    public void onConnectionClosed();

    /**
     * 重新登录
     */
    public void onReLogin();

    public void onLoginSuccess();

    public void onLoginFailed();
}
